"use strict";

/**
 * `Cancel`是取消操作是抛出的对象
 *
 * @class
 * @param {String} message 消息
 */
function Cancel(message) {
  this.message = message;
}

Cancel.prototype.toString = function toString() {
  return `cancel${this.message ? ":" + this.message : ""}`;
};

Cancel.prototype.__CANCEL__ = true;

module.exports = Cancel;
